using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Streambolics.Gui
{
    public partial class StandardControl
    {
        /// <summary> 
        ///     Clean up any resources being used.
        /// </summary>
        /// <param name="disposing">
        ///     true if managed resources should be disposed; otherwise, false.
        /// </param>

        protected override void Dispose (bool disposing)
        {
            if (disposing)
            {
                DoDisposing ();
            }
            if (disposing && (components != null))
            {
                components.Dispose ();
            }
            base.Dispose (disposing);
        }

        public event EventHandler Disposing;

        protected void DoDisposing ()
        {
            OnDisposing (EventArgs.Empty);
        }

        protected virtual void OnDisposing (EventArgs e)
        {
            if (Disposing != null)
            {
                Disposing (this, e);
            }
        }
    }
}
